package xyx.ysfwpt.service;

import org.apache.ibatis.annotations.Param;
import xyx.ysfwpt.model.Drug;

import java.util.List;
import java.util.Map;

public interface DrugService {

    List<Drug> selectAllDrug();

    List<Drug> selectDrugByInputList(@Param(value = "hospital") String hospital,
                                     @Param(value = "delivery") String delivery,
                                     @Param(value = "searchword") String searchword);

    void addDrug(Drug drug);

    void deleteDrug(int drug_id);

    Drug selectDrugByDrugId(int drug_id);

    void updateDrug(Drug drug);

    List<Map> selectDrugConsume(@Param(value = "manufacturer") String manufacturer,
                                @Param(value = "searchword") String searchword);

}
